//
//  postModel.h
//  Item A House
//
//  Created by 甄奇文 on 15/5/28.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol postModelDelegate <NSObject>

- (void)connectFinished:(NSData *)data;

@end

@interface postModel : NSObject
@property (nonatomic, assign) id<postModelDelegate>delegate;
@property (nonatomic, copy) NSString *requestUrl;
@property (nonatomic, retain) NSMutableData *receiveData;
- (void)startConnection:(NSString *)str parmaters:(NSDictionary *)parmaters;

+ (postModel *)connectWithUrl:(NSString *)url delegate:(id<postModelDelegate>)delegate parmaters:(NSDictionary *)parmaters;
@end
